package com.hzz.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.hzz.gulimall.auth.vo.UserLoginVo;
import com.hzz.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("jiajialemall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo vo);

    @RequestMapping("/member/member/login") // member
    R login(@RequestBody UserLoginVo vo);
}
